package com.zb.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @Author WEN
 * @Date 2023/10/26 0026
 **/
@Data
@ApiModel("工单服务费用审核对象")
public class OrderFeeCheckVo {
    @NotNull(message = "审核的服务费用项目ID不能为空")
    @ApiModelProperty(value = "服务费用项目ID", required = true)
    private Long id;

    @Length(max = 200,message = "审核备注长度限制 200 个字符以内")
    @ApiModelProperty(value = "审核备注")
    private String remark;

    @Valid
    @NotNull(message = "审核的工单费用对象不能为空，至少填写一项")
    @NotEmpty(message = "审核的工单费用对象不能为空，至少填写一项")
    @ApiModelProperty(value = "审核的工单服务费用对象", required = true)
    private List<WorkFeeDetailCheckVo> feeDetails;


}
